package com.cskaoyan._03otherstream._02print;

import java.io.IOException;
import java.io.InputStream;
import java.io.PrintStream;
import java.io.PrintWriter;

/**
 * @description:
 * @author: 景天
 * @date: 2023/2/20 15:17
 **/
/*
标准输入输出流:

标准输入流:
    System.in
    本质: InputStream 字节输入流
    默认输入设备: 键盘

标准输出流:
    System.out
    本质: PrintStream 字节打印流
    默认输出设备: 显式器

 */
public class Demo5 {
    public static void main(String[] args) throws IOException {
        //InputStream in = System.in;

        //PrintStream out = System.out;

        //byte[] bytes = new byte[1024];
        //// read方法是一个阻塞方法
        //int readCount = in.read(bytes);
        //System.out.println(new String(bytes,0,readCount));

        PrintWriter printWriter = new PrintWriter(System.out);
        printWriter.print(1000);
        printWriter.print(3.14);
        printWriter.flush();

    }
}
